<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        body{
            margin: 0;
            padding: 0;
            font-family: "helvetica neue",arial,sans-serif;
        }
        ul{
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .head{
            width: 100%;
            height: 520px;
            min-width: 1024px;
            background:url("img/huabie.jpg") no-repeat;
            background-size: 100%;
            overflow: hidden;
        }
        .headone{
            width: 100%;
            height: 48px;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            margin: auto;
            transition: all .6s ease;
        }
        .nav{
            width: 80%;
            height: 48px;
            padding-top: 10px;
            margin: auto;

        }
        /*.navleft{*/
            /*width: 100%;*/
            /*height: 48px;*/
            /*line-height: 48px;*/
        /*}*/
        .navleft a{
            float: left;
            height: 28px;
            line-height: 28px;
            text-align: center;
            color: #DEE0E5;
            font-size: 14px;
            vertical-align: middle;
            text-decoration: none;
            margin-right:25px ;
            padding-bottom:3px ;
        }
        .found{
            border-bottom:1px solid #fff ;
        }

        .navleft a:hover{
            border-bottom:1px solid #fff ;
        }
        /*.firstone:hover{*/
            /*border-bottom: 1px solid transparent ;*/
          /*}*/
        .newone{
            display:inline-block;
            width: 34px;
            font-size: 12px;
            height: 17px;
            line-height: 17px;
            background-color: #F6A623;
        }
        .circle{
            float: left;
            width: 24px;
            padding-top: 12px;
            height: 28px;
            line-height: 28px;
            vertical-align: middle;
            cursor: pointer;

        }
        .circle1{
            float: left;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            margin-right:2px ;
            background-color: #fff;
        }
        .navright{
            float: right;
        }
        .navright button{
            width: 52px;
            height: 34px;

            color: #fff;
            outline: none;
            font-size: 14px;
            border-radius: 2px;
            cursor: pointer;
            margin-left: 5px;
        }
        .denglu{
            background-color: #c90000;
            border: 0;
        }
        .zhece{
            background-color: transparent;
            border: 1px solid #fff;
        }
        .zhece:hover{
            background-color:  #fff;
            color: #444;
        }
        .biaoyu{
            width: 540px;
            height: 54px;
            margin: auto;
            margin-bottom: 45px;
        }
        .biaoyu p{
            font-size: 42px;
            color: #fff;
            text-align: center;
            font-family: "微软雅黑";
            font-weight: normal;
        }
        .kuang1{
            width: 558px;
            height: 36px;
            margin: auto;
            transition: all .6s ease;
        }
        .wenkuang{
            width: 558px;
            height: 36px;
            outline: none;
            font-size:14px ;
            color: #FFFFFF;
            border: 1px solid #fff;
            background-color: transparent;
            border-radius: 3px;
           padding-left: 5px;
            padding-right: 5px;
            background: url("img/sl.png") no-repeat right;
            background-size: 30px;
            cursor: pointer;
        }
        .remen{
            font-size: 14px;
            margin-top: 10px;
            text-align: center;
            color: #DDDDDD;
        }
        .remen a{
            text-decoration: none;
            color: #fff;
            padding-right: 5px;
        }
        .remen a:hover{
            text-decoration: underline;
        }
        .center{
            float: left;
            width: 50%;
            height: 100%;
            position: relative;
            top: -3px;
            left:5%;
            display: none;
            transition: all .6s ease;
        }
        .wenkuang1{
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 34px;
            outline: none;
            font-size:14px ;
            color: #FFFFFF;
            border: 1px solid #fff;
            background-color: transparent;
            border-radius: 3px;
            padding-left: 5px;
            padding-right: 5px;
            background: url("img/sl.png") no-repeat right;
            background-size: 30px;
            cursor: pointer;
        }
        @media screen and(max-width: 1275px){
            .head{
                width: 100%;
                height: 480px;
                background:url("img/huabie.jpg") no-repeat;
                background-size: 100%;}
        }
        .cesi{
            width: 100%;
            height: 1000px;
            background-color: forestgreen;
            overflow: hidden;
        }
        @media screen and(max-width:1600px){
            .wenkuang1{
                width: 707px;
                height: 34px;
            }
        }
    </style>
    <script src="jquery-1.11.1.min.js"></script>
</head>
<body>
<div class="head">
    <div class="headone">
        <div class="nav">
        <div class="navleft">
                <a href="#" class="firstone">
                    <img src="img/logo_wt.png" alt="haha"/>
                    <img src="img/logo.png" alt="haha" style="display: none"/>
                </a>
                <a href="#" class="found">发现</a>
                <a href="#">最新</a>
                <a href="#">美思 <span class="newone">new</span></a>
                <a href="#">教育</a>
            <div class="circle">
                <div class="circle1"></div>
                <div class="circle1"></div>
                <div class="circle1"></div>
            </div>
            <form class="center">
                <input type="text" class="wenkuang1" placeholder="搜索你喜欢的"/>
            </form>
        </div>
        <div class="navright">
            <button class="denglu">登录</button>
            <button class="zhece">注册</button>
        </div>
    </div>
    </div>
    <div class="biaoyu">
        <p>花瓣，陪你做生活的设计师</p>
    </div>
    <div class="kuang1">
        <input type="text" class="wenkuang" placeholder="搜索你喜欢的"/>
    </div>
    <div class="remen">
        <span>热门搜索:</span>
        <a href="#">匠人匠心</a>
    </div>
</div>
<div class="cesi"></div>
<script>
    var x1;
    $(document).ready(
            $(window).scroll(function(){
                if($(window).scrollTop()>180){
                    x1=$(window).scrollTop()
                   console.log(x1) ;
                    $(".kuang1").hide();
                    $(".center").show();
                    $(".navleft  img").eq(0).css({display:"none"});
                    $(".navleft  img").eq(1).css({display:"block"});
                    $(".navleft a").css({color:"#444"});
                    $(".zhece").css({color:"#444",border:"1px solid #D9D9D9"});
                    $(".circle1").css({backgroundColor:"#999"});
                    $(".wenkuang1").css({border:"1px solid #ddd",color:"#444" });
                    $(".headone").css({backgroundColor:"#fff"});
                    $(".found").css({color:"#C90000"});
                }
                else{
                    $(".kuang1").show();
                    $(".center").hide();
                    $(".navleft  img").eq(0).css({display:"block"});
                    $(".navleft  img").eq(1).css({display:"none"});
                    $(".navleft a").css({color:"#E2E2E6"});
                    $(".zhece").css({color:"#fff",border:"1px solid #fff"});
                    $(".circle1").css({backgroundColor:"#fff"});
                    $(".headone").css({backgroundColor:"transparent"});
                    $(".found").css({color:"#fff"});
                }
    }))
</script>
</body>
</html>